<!-- 提料订单详情 -->
<template>
	<view class="carryOlderDetail">
		<view class="headerBox"></view>
		<view class="nav_bar" :class="{'nav_bar_bg':isSticky}" :style="{paddingTop:statusBar+'px',height:customBar+'px'}">
			<view class="left" @click="$util.backPage(1)">
				<text class="iconfont icon-xiangyou"></text>
			</view>
			<view class="navTiele">订单详情</view>
		</view>
			
		<view class="typeBox">
			<view class="title">订单信息</view>
			<view class="infoItem" v-for="(item,index) in data" :key="index">
				<view class="name">{{ item.name }}</view>
				<view class="num">{{ item.value }}</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {getStockInfo} from '@/api/new_store.js'
	export default {
		data() {
			return {
				customBar: this.customBar,
				statusBar: this.statusBar,
				isSticky: false, // 控制模块是否吸顶
				
				data: []
			}
		},
		onLoad(option) {
			this._id = option.id
			this.getStockInfo()
		},
		methods: {
			getStockInfo() {
				getStockInfo({id: this._id}).then(({status, data})=>{
					this.data = data
				})
			},
			
		}
	}
</script>

<style lang="scss" scoped>
	.carryOlderDetail {
		position: relative;
		width: 100%;
		height: 100vh;
		background: rgba(244, 238, 232, 1);
		padding-bottom: 140rpx;
		overflow: hidden;
	}

	.headerBox {
		z-index: 99;
		width: 750rpx;
		height: 540rpx;
		background: linear-gradient(134.64deg, rgba(247, 234, 198, 1) 0%, rgba(226, 192, 148, 1) 100%);
	}

	.nav_bar {
		z-index: 999;
		position: relative;
		position: fixed;
		top: 0;
		left: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 750rpx;
		height: 80rpx;
		padding: 0 36rpx;
		box-sizing: border-box;
		.left{
			text{
				color: black;
				font-size: 32rpx;
				transform: rotate(180deg);
				display: block;
			}
		}
	
		.navTiele {
			width: 100%;
			font-size: 34rpx;
			font-weight: 500;
			letter-spacing: 0rpx;
			line-height: 80rpx;
			color: rgba(48, 48, 48, 1);
			text-align: center;
		}
		.navTiele::after {
			content: ' ';
			width: 1px;
			height: 1px;
		}
	
	}
	.nav_bar_bg {
		background: #fff;
	}
	
	
	.typeBox {
		position: relative;
		width: 700rpx;
		border-radius: 24rpx;
		background: rgba(255, 255, 255, 1);
		padding: 26rpx 24rpx 26rpx 24rpx;
		margin: 24rpx auto 0;
		overflow: hidden;
		transform: translateY(-350rpx);
	
		.title {
			position: relative;
			width: 100%;
			height: 80rpx;
			font-size: 32rpx;
			font-weight: 550;
			letter-spacing: 0rpx;
			line-height: 60rpx;
			color: rgba(64, 63, 63, 1);
			text-align: left;
			vertical-align: top;
			padding-left: 10rpx;
			border-bottom: 2rpx solid rgba(246, 246, 246, 1);
	
		}
	
		.title::before {
			content: '';
			position: absolute;
			left: 0;
			top: 16rpx;
			width: 4rpx;
			height: 29rpx;
			background: rgba(242, 208, 150, 1);
	
		}
	
		.infoItem {
			display: flex;
			width: 100%;
			margin-top: 20rpx;
	
			.name {
				flex-shrink: 0;
				min-width: 160rpx;
				font-size: 28rpx;
				font-weight: 550;
				letter-spacing: 0rpx;
				color: rgba(61, 61, 61, 1);
				text-align: left;
				vertical-align: top;
				margin-right: 36rpx;
			}
	
			.num {
				display: flex;
				font-size: 28rpx;
				font-weight: 400;
				letter-spacing: 0rpx;
				line-height: 40.54rpx;
				color: rgba(122, 122, 122, 1);
				text-align: left;
				vertical-align: top;
			}
		}
	
	}
	
	
</style>